function go(){
  console.log("go");
}
function http({
  url,
  success
}){
  wx.request({
    url,
    data:[],
    header:{"content-type":"application"},
    method:"GET",
    dataType:"json",
    responseType:"text",
    success:(res)=>{
      success(res)
    }
  })
}
function handleStr(str){
  if(str.length>6){
    str = str.slice(0,6) + "...";
  }
  return str;
}
module.exports = {
  go,
  http,
  handleStr
}